export const getDurationText = (duration: number) => {
  if (duration < 60) {
    return `${duration} 秒`;
  } else {
    const minutes = Math.floor(duration / 60);
    const seconds = Math.floor(duration % 60);
    if (seconds === 0) {
      return `${minutes} 分钟`;
    } else {
      return `${minutes} 分 ${seconds} 秒`;
    }
  }
};
